/*
 * @Author: ReinerLau lk850593913@gmail.com
 * @Date: 2022-09-23 10:19:21
 * @LastEditors: ReinerLau lk850593913@gmail.com
 * @LastEditTime: 2023-01-09 10:04:50
 * @FilePath: \robot\src\api\mission-mavlink.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from "@/utils/request.js";

/**
 * @description: 下发路径
 * @param {*} data 路径信息
 * @param {*} id 机器人id
 * @return {*}
 */
export function sendMavlinkMission(data, id, params) {
  return request({
    url: `/robot-cruise/patrolingCruise/v2/${id}`,
    method: "post",
    data: data,
    params,
  });
}
